<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>文章管理</title>
    <link rel="stylesheet" href="http://127.0.0.1/cms/cms/Static/hdjs/hdjs.css" />
    <script>
    	var APP = 'http://127.0.0.1/cms/cms/Admin/Article';
    </script>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Static/js/jq.js"></script>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Static/hdjs/hdjs.js"></script>
    <script type="text/javascript" src="http://127.0.0.1/cms/cms/Application/Admin/View/Article/js/article.js"></script>
    <style>
    	
    </style>
</head>
<body>
<div class="wrap">
	<div class="hd-title-header">
				<h3>文章列表</h3>
			</div>
    <table class="hd-table hd-table-list">
        <thead>
        <tr>
            <td width="50">id</td>
            <td>文章标题</td>
            <td width="100">属性</td>
            <td width="180">添加时间</td>
            <td width="180">修改时间</td>
            <td width="100">所属分类</td>
            <td width="50">作者</td>
            <td width="150">操作</td>
        </tr>
        </thead>
        <tbody>
        	<?php foreach ($arts as $key=>$val){?>
            <tr>
            <td width="50"><?php echo $val['aid'];?></td>
            <td><?php echo $val['title'];?></td>
            <td width="100"><?php echo hd_substr($val['attr'],15,'...');?></td>
            <td width="180"><?php echo date("Y-m-d H:i:s",$val['sendtime']);?></td>
            <td width="180"><?php echo $val['updatetime'];?></td>
            <td width="100"><?php echo $val['cname'];?></td>
            <td width="50"><?php echo $val['author'];?></td>
            <td width="150">
            	<a href="http://127.0.0.1/cms/cms/Admin/Article/edit/aid/<?php echo $val['aid'];?>" class="hd-btn hd-btn-primary hd-btn-xm" style="margin:0">修改</a>
            	<a href="javascript:;" data-isre="1" data-aid="<?php echo $val['aid'];?>" class="hd-btn hd-btn-danger hd-btn-xm isrec" style="margin:0">回收</a>
            </td>
        </tr>
        <?php }?>
        </tbody>
    </table>
    <div class="hd-page">
      <?php echo $page;?>
    </div>
	
</div>

</body>
</html>


